package kr.hkit.powerjava.chapter06;

import java.util.Scanner;

public class exercise02 {
	public static void main(String[] args) {
		
		int grade;
		
		Scanner input = new Scanner (System.in);
		System.out.print("성적을 입력:");
		grade = input.nextInt();
		
		if (grade>=90)
			System.out.println("A");
		else if (grade>=80)
			System.out.println("B");
		else if (grade>=70)
			System.out.println("C");
		else if (grade>=60)
			System.out.println("D");
		else 
			System.out.println("F");
				
	}
}
